db = db.getSiblingDB('yapi');

db.createUser({
  user: "yapiblog",
  pwd: "yapi666",
  roles: [{ role: "dbAdmin", db: "yapi" },{ role: "readWrite", db: "yapi" }]
});